/**
 * 
 */
package org.t2.game.server.module.bag.model;

import org.banish.sql.core.annotation.Column;
import org.banish.sql.core.annotation.Id;
import org.banish.sql.core.annotation.SplitTable;
import org.banish.sql.core.annotation.Id.Strategy;
import org.banish.sql.core.annotation.enuma.AsyncType;
import org.banish.sql.core.entity.AbstractEntity;
import org.gaming.service.repository.annotation.NoCache;
import org.springframework.stereotype.Repository;

/**
 * @author YY
 */
@Repository
@NoCache
@SplitTable(comment = "作弊日志表", dbAlias = "log", asyncType = AsyncType.INSERT, byColumn = "time", asyncDelay = 60)
public class CheatLog extends AbstractEntity {
	@Id(strategy = Strategy.AUTO)
	@Column(comment = "唯一ID")
	private long id;
	@Column(name = "player_id", comment = "玩家ID")
	private long playerId;
	@Column(comment = "玩家昵称")
	private String nick;
	@Column(name = "item_id", comment = "道具ID")
	private int itemId;
	@Column(name = "item_name", comment = "道具名称")
	private String itemName;
	@Column(comment = "变化量")
	private long delta;
	@Column(name = "delta_cheat", comment = "变化量是否异常")
	private boolean deltaCheat;
	@Column(name = "curr_num", comment = "持有量")
	private long currNum;
	@Column(name = "curr_cheat", comment = "持有量是否异常")
	private boolean currCheat;
	@Column(comment = "发生时间", extra = "time")
	private long time;
	@Column(comment = "原因")
	private String reason;
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public long getPlayerId() {
		return playerId;
	}
	public void setPlayerId(long playerId) {
		this.playerId = playerId;
	}
	public String getNick() {
		return nick;
	}
	public void setNick(String nick) {
		this.nick = nick;
	}
	public int getItemId() {
		return itemId;
	}
	public void setItemId(int itemId) {
		this.itemId = itemId;
	}
	public String getItemName() {
		return itemName;
	}
	public void setItemName(String itemName) {
		this.itemName = itemName;
	}
	public long getDelta() {
		return delta;
	}
	public void setDelta(long delta) {
		this.delta = delta;
	}
	public boolean isDeltaCheat() {
		return deltaCheat;
	}
	public void setDeltaCheat(boolean deltaCheat) {
		this.deltaCheat = deltaCheat;
	}
	public long getCurrNum() {
		return currNum;
	}
	public void setCurrNum(long currNum) {
		this.currNum = currNum;
	}
	public boolean isCurrCheat() {
		return currCheat;
	}
	public void setCurrCheat(boolean currCheat) {
		this.currCheat = currCheat;
	}
	public long getTime() {
		return time;
	}
	public void setTime(long time) {
		this.time = time;
	}
	public String getReason() {
		return reason;
	}
	public void setReason(String reason) {
		this.reason = reason;
	}
}
